import mitt from 'mitt'

type Events = {
  update:object;
  bar: number;
  IsDark:boolean;
  Run:boolean;
  Submit:boolean;


};

// 提供泛型参数让 emitter 能自动推断参数类型
export default  mitt<Events>();